﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using KPIS.GERP.GHRMS.DAL;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IBLL;

namespace KPIS.GERP.GHRMS.BLL
{
    public class PositionCommandBLL : IPositionCommandBLL
    {
        PositionCommandDAL CmdPos = new PositionCommandDAL();

        public PositionCommandInfo GetPositionCommandInfo(Nullable<int> Seq)
        {
            return CmdPos.GetPositionCommandInfo(Seq);
        }
        public IList<PositionCommandInfo> LoadGridPositionCommands(Nullable<int> EmpTypeSeq)
        {
            return CmdPos.LoadGridPositionCommands(EmpTypeSeq);
        }

        public void Insert(PositionCommandInfo Info)
        {
            try
            {
                CmdPos.Insert(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }
        public void Update(PositionCommandInfo Info)
        {
            try
            {
                CmdPos.Update(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }
        public void Delete(PositionCommandInfo Info)
        {
            try
            {
                CmdPos.Delete(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }

        
    }
}
